package com.blrs.domain;

import java.util.Date;

import com.blrs.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.blrs.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 主分类对象 main_type
 * 
 * @author yuxiang.chen
 * @date 2023-09-04
 */
public class MainType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 目录名称 */
    @Excel(name = "目录名称")
    private String name;

    /** 目录分类 */
    @Excel(name = "目录分类")
    private String typeCode;

    /** 父级id */
    @Excel(name = "父级id")
    private String parentId;

    /** id路劲 */
    @Excel(name = "id路劲")
    private String idPath;

    /** 层级排序 */
    @Excel(name = "层级排序")
    private Long orderIndex;

    /** 主排序 */
    @Excel(name = "主排序")
    private Long fullIndex;

    /** 操作人id */
    @Excel(name = "操作人id")
    private Long opId;

    /** 操作人姓名 */
    @Excel(name = "操作人姓名")
    private String opName;

    /** 部门id */
    @Excel(name = "部门id")
    private String deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date opTime;
    /** 归属于 */
    private Long belongTo;
    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setIdPath(String idPath) 
    {
        this.idPath = idPath;
    }

    public String getIdPath() 
    {
        return idPath;
    }
    public void setOrderIndex(Long orderIndex) 
    {
        this.orderIndex = orderIndex;
    }

    public Long getOrderIndex() 
    {
        return orderIndex;
    }
    public void setFullIndex(Long fullIndex) 
    {
        this.fullIndex = fullIndex;
    }

    public Long getFullIndex() 
    {
        return fullIndex;
    }
    public void setOpId(Long opId)
    {
        this.opId = opId;
    }

    public Long getOpId()
    {
        return opId;
    }
    public void setOpName(String opName) 
    {
        this.opName = opName;
    }

    public String getOpName() 
    {
        return opName;
    }
    public void setDeptId(String deptId) 
    {
        this.deptId = deptId;
    }

    public String getDeptId() 
    {
        return deptId;
    }
    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }
    public void setOpTime(Date opTime) 
    {
        this.opTime = opTime;
    }

    public Date getOpTime() 
    {
        return opTime;
    }

    public Long getBelongTo() {
        return belongTo;
    }

    public void setBelongTo(Long belongTo) {
        this.belongTo = belongTo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("typeCode", getTypeCode())
            .append("parentId", getParentId())
            .append("idPath", getIdPath())
            .append("orderIndex", getOrderIndex())
            .append("fullIndex", getFullIndex())
            .append("opId", getOpId())
            .append("opName", getOpName())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("opTime", getOpTime())
            .toString();
    }
}
